export const fileTypeIcon = {
	jpg: 'doc_img',
	jpeg: 'doc_img',
	png: 'doc_img',
	gif: 'doc_img',
	bmp: 'doc_img',
	txt: 'doc_txt',
	css: 'doc_code',
	html: 'doc_html',
	xlsx: 'doc_excel',
	xls: 'doc_excel',
	exe: 'doc_exe',
	iso: 'doc_iso',
	ppt: 'doc_ppt',
	pptx: 'doc_ppt',
	zip: 'doc_zip',
	rar: 'doc_zip',
	pdf: 'doc_pdf',
	doc: 'doc_word',
	docx: 'doc_word',
	dir: 'doc_folder',
	mp4: 'doc_video',
	wmv: 'doc_video',
	flv: 'doc_video',
	mkv: 'doc_video',
	avi: 'doc_video',
	mp3: 'doc_music'
};

export function getFileIconByExtName(extName) {
	if (fileTypeIcon[extName]) {
		return fileTypeIcon[extName];
	}

	return 'doc_blank';
}
